package com.service;

import com.bean.Payment;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface PaymentService {


     List<Payment> selectAll() throws SQLException ;

     List<Payment>  selectByName(String ownerId) throws SQLException ;

     /**
      * 根据用户id和缴费类型查询缴费信息
      * @param ownerId
      * @param paymentType
      * @return
      * @throws SQLException
      */
     Map<Integer, Date> selectById(String ownerId, String paymentType) throws SQLException;

     boolean deleteById(Integer id) throws SQLException ;

     boolean removeAll(String[] idsArr) throws SQLException ;

     boolean insert(Payment p) throws SQLException ;


     Integer count() throws SQLException ;

     Integer countSearch(String search) throws SQLException;


     List<Payment> selectAllPagination(Integer offset, Integer limit) throws SQLException;

     List<Payment> selectAllPaginationSearch(Integer offset, Integer limit, String search) throws SQLException ;

}